<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑院系</title>
	<load href="__JS__/menu.js" />
	<load href="__JS__/leftmenubar.js" />
	<load href="__CSS__/header.css" />
	<load href= "__JS__/jshelper.js" /> 
	<load href="__CSS__/footer.css" />
	<load href="__JS__/jQuery/jquery.js" />
    <load href="__JS__/jQuery/jquery.form.js" />
<script   type= "text/javascript"> 
	function   subform(gourl){   
 	 var   gourl; 
  	form2.action=gourl; 
  	form2.submit(); 
	} 
</script> 
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/collegedetail';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
</head>

<body bgcolor="#EEEEEE">
	<div class="nowposition">
	当前位置：
	<a href='__APP__/index/index'  class="nowpositionhref">主页</a>>
	<a href='__URL__/index'  class="nowpositionhref">后台管理</a>>
	<a href='__URL__/collegedetail'  class="nowpositionhref">院系管理</a>>
	<a href="__URL__/collegeedit"  class="nowpositionhref">院系编辑</a>
	</div>
	<div id="container">
		<layout name="Auth:leftmenu" />
	</div>
	<div class="college_edit">
	<div align="left">
		<a href="__URL__/adddcustom/id/{$vo.id}" style="font-size:17px; text-decoration:none; color:blue; font-weight:bold;">创建院系主页</a>
		<div style="margin-top:-20px; margin-left:200px;">
			<form id="form2" method="post">
			<tr>
			<td width="300" >院系主页：
			<input type='hidden' name='id' value ={$c.id}>
			<input type='hidden' name='departmentid' value='{$c.departmentid}'></td>
			</tr>
			<tr>
			<td><input   type= "button"   name= "btn1 "   value= "修改 "   onclick= "subform('__URL__/dcustomedit'); "></td> 
			<td><input   type= "button"   name= "btn2 "   value= "删除 "   onclick= "subform('__URL__/dcustomdelete'); "></td>
			</tr>	
			</form>
		</div>
	</div>
		<form id='form1' method="post" action="__URL__/collegeupdate" >
			<input type="hidden" name="id" value={$vo.id}>
			<div ><a href="__URL__/collegedetail" style="text-decoration:none">返回</a></div>
			<div id='result' style="margin-left:80px;"></div>	
			<table border="0" align="center">
				<tr>
					<td width="400" >院系名称 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;{$vo.name}</td>
				</tr>
				<tr>
					<td width="400" >修改院系名称：<input type="text" name="name" value={$vo.name}></td>				
				</tr>
				<tr>
					<td><input type="submit" value="更新"></td>
				</tr>
			</table>
		</form>
		
		
	</div>

</body>
</html>
